package com.test;

import com.by.common.conf.CommandMager;
import com.by.common.cont.CommandConst;

public class CommandConfiguationManager {
	public static void main(String[] args) {
		String test1 = CommandMager.getProperty(CommandConst.WX_CONTROL_ROOM_EQUIPMENT_POST_REQUEST_HEADER_PARAM_TWO)+"/"+CommandMager.getProperty(CommandConst.WX_CONTROL_ROOM_EQUIPMENT_POST_REQUEST_HEADER_PARAM_APPLICATION)+"="+CommandMager.getProperty(CommandConst.WX_CONTROL_ROOM_EQUIPMENT_POST_REQUEST_HEADER_PARAM_TWO_CHARSET);
		System.out.println(test1);
		String test2 = CommandMager.getProperty(CommandConst.WX_CONTROL_ROOM_EQUIPMENT_REDIRECT_URL_PREF_LOCAL) + ":" +CommandMager.getProperty(CommandConst.WX_CONTROL_ROOM_EQUIPMENT_REDIRECT_URL_PROT) + CommandMager.getProperty(CommandConst.WX_CONTROL_ROOM_EQUIPMENT_REDIRECT_URL_METHOD);
		System.out.println(test2);
		String propUrl = "";
		if (CommandMager.getBoolean(CommandConst.WX_ONTROL_ROOM_TEST_LOCAL)){
			propUrl = CommandMager.getProperty(CommandConst.WX_CONTROL_ROOM_EQUIPMENT_REDIRECT_URL_PREF_LOCAL);
		}else{
			propUrl = CommandMager.getProperty(CommandConst.WX_CONTROL_ROOM_EQUIPMENT_REDIRECT_URL_PREF_CLUSTER); 
		}
		System.out.println(propUrl);
		propUrl = propUrl + ":" +CommandMager.getProperty(CommandConst.WX_CONTROL_ROOM_EQUIPMENT_REDIRECT_URL_PROT) + CommandMager.getProperty(CommandConst.WX_CONTROL_ROOM_EQUIPMENT_REDIRECT_URL_METHOD);
		System.out.println(propUrl);
	}
}
